package com.ww.scm.entity.pub;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.ww.scm.entity.AbstractEntity;

@Entity
@Table(name = "T_PUB_DIC_TYPE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
// 基础数据类型
public class DictionaryType extends AbstractEntity {

	//编号
	private String code;
	//名称
	private String name;
	
	private String parent;
	
	public DictionaryType() {
	}
	
	@Column(name = "F_CODE", nullable = false, unique = true, length = 128)
	public String getCode() {
		return code;
	}
	
	@Column(name = "F_NAME", nullable = false, unique = true, length = 128)
	public String getName() {
		return name;
	}
	
	 
	@Column(name = "F_PARENT_ID", nullable = true, length = 32)
	public String getParent() {
		return parent;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setParent(String parent) {
		this.parent = parent;
	}

}
